import { getToken } from "./auth";

const BASE_URL = process.env.REACT_APP_API_BASE_URL;
const PATH = process.env.REACT_APP_API_PATH;

export const deleteConversation = async (conversationId) => {
      const response = await fetch(`${BASE_URL}${PATH}/DeleteConversation`, {
        method: 'DELETE',
        headers: {
          'Authorization': `Bearer ${getToken()}`,
          'Content-Type': 'application/json',
          'X-Conversation-ID':conversationId
        }
      });
      return response.json();
  };